import {
    Entity,
    PrimaryGeneratedColumn,
    Column,
    Index
} from "typeorm";

@Entity()
export class IotDeviceSecret {
    @PrimaryGeneratedColumn()
    deviceId: number;

    @Column({
        type: "varchar",
        length: 100,
        charset: "utf8",
        collation: "utf8_bin",
        comment: "设备Id",
    })
    deviceKey: string;

    @Column({
        type: "varchar",
        length: 100,
        charset: "utf8",
        collation: "utf8_bin",
        comment: "设备秘钥",
    })
    deviceSecret: string;

    @Column({
        type: "int",
        width: 10,
        default: 0,
    })
    createdUserId: number;

    @Column({
        type: "boolean"
    })
    deleteStatus: boolean;

}